import _ from 'lodash'

async function getComponent() {
  var element = document.createElement('div');
  const printModule = await import('./print');
  const print = printModule.default;
  // Lodash, now imported by this script
  element.innerHTML = _.join(['Hello', 'webpack', print()], ' ');

  return element;
}

getComponent().then(component => {
  document.body.appendChild(component);
})